package com.zelin.util;

import java.util.List;

/**
 * @Author: Feng.Wang
 * @Company: Zelin.ShenZhen
 * @Description:
 * @Date: Create in 2019/6/24 11:32
 */
public class PageResult<T> {
    private List<T> rows;       //代表每页分页记录的集合
    private long total;         //代表总记录数

    public PageResult() {
    }

    public PageResult(List<T> rows, long total) {
        this.rows = rows;
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "rows=" + rows +
                ", total=" + total +
                '}';
    }
}
